package com.ibeeking.found.common.enums.system;


/**
 * 租借物品抵押方式
 */
public enum  SystemMaterielDepositEnum {

    NO(0, "否"),
    MONEY(1,"现金"),
    POINTS(2, "积分"),;


    private Integer code;

    private String name;

    public Integer getCode(){
        return this.code;
    }

    public String getName(){
        return this.name;
    }


    SystemMaterielDepositEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    public static SystemMaterielDepositEnum getEnum(Integer code){
        for (SystemMaterielDepositEnum enums : values()){
            if(enums.code.equals(code)){
                return enums;
            }
        }
        return null ;
    }

}
